<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="tr09" uri="http://www.51i-star.com/mypagetagsintegral" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查询收货信息</title>
<style type="text/css">
	body{
		background:#dae4fe;
	}
	.t{
		border-collapse: collapse;
		border: none;
		width: 700px;
		font-size:14px;
		margin-top:20px;
	}
	.t td{
		text-align: center;
	}
	.border_bottom_empty{
		background:#CCC;
	}
	.c{
		background:#CCC;
	}
	tr:hover{
		cursor:pointer;
	}
	h2,table,.pager{
		margin-left:20px;
	}
	.one1{
		font-size:14px;
		font-weight:bold;
		margin:5px;
	}
</style>
<link rel=stylesheet type=text/css href="css/input.css">
<script type="text/javascript" src="js/jquery-3.1.0.min.js"></script>
<script>
		$(function(){
			$("tr:even").css("background","#ccffcc");
			$("tr:odd").css("background","#ccffff");
			$("table tr").mouseenter(function(){
				$(this).css("background","#CCC");
			}).mouseleave(function(){
				$("tr:even").css("background","#ccffcc");
				$("tr:odd").css("background","#ccffff");
			});
			$(function(){
				$(".def").click(function(){
					var oid = $(this).attr("oid");
					$.post("deletereceiving",{oid:oid},function(v){
						alert(v);
						location.reload();
					});
				});
			});
		});
</script>
</head>
<body>
	<div class="one1">
		收货管理->查询收货信息
		<hr>
	</div>
	<h2>收货信息</h2>
	<table id="t" border="1" class="t">
		<tr class ="border_bottom_empty">
			<th>订单号</th>
			<th>收货地址</th>
			<th>商家发货状态</th>
			<th>商家发货时间</th>
			<th>收货人姓名</th>
			<th>收货人时间</th>
			<th>操作</th>
		</tr>
		<tbody>
		<c:forEach items="${list}" var="re">
			<tr>
				<td width="10%">${re.oId}</td>
				<td width="10%">${re.rReceivingaddress}</td>
				<td width="10%">${re.rState}</td>
				<td width="20%"><fmt:formatDate value="${re.rCdate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td width="10%">${re.rName}</td>
				<td width="20%"><fmt:formatDate value="${re.rUdate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td width="20%">
					<a href="selectaddreceiving"><img title="添加收货信息" src="images/tubiao3/添加 (1).png"></a>
					<a class="def" oid="${re.oId}" href="javascript:void(0)"><img title="删除收货信息" src="images/tubiao3/删除 (1).png"></a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pager">
		<tr09:pager url="selectreceiving" pagesize="10" total="${total }" curpage="${param.curpage }"/>
	</div>
</body>
</html>